package com.zyg.seckill.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by WF on 2021/11/29 16:44
 */
@FeignClient("zyg-order")
public interface OrderClient {
    @GetMapping("order/pay/{type}")
    @ResponseBody
    String pay(@PathVariable("type") int type, String outTradeNo);

    @GetMapping("orderlist")
    String orderList(Model model);
}
